package com.maychat.mapper;

import com.maychat.pojo.UserContactApply;
import com.maychat.pojo.extended.UserContactApplyWithGroupNameAndNickName;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserContactApplyMapper {
    void insertUserContactApply(UserContactApply userContactApply);

    void updateUserContactApplyById(UserContactApply userContactApply);

    List<UserContactApply> selectUserContactApplies(UserContactApply userContactApply);

    Integer selectCountCond(String id,Long lastApplyTime);

    List<UserContactApplyWithGroupNameAndNickName> selectUserContactAppliesByReceiverIdWithApplierAndGroup(String receiverId);
}
